package com.szs.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.BAD_REQUEST)//将该异常映射为 HTTP 400 错误。
public class ClassHasStudentsException extends RuntimeException{
    public ClassHasStudentsException(String message) {
        super(message);
    }
}
